﻿import odal.*;
class odal.OMSData {
	private var m_omsDatasource:OMSDatasource;
	private var m_omsStructure:OMSStructure;
	
	public function OMSData() {
		//trace( 'OMSData instantiated' );
		this.m_omsStructure = null;
	}//OMSData

	public function set OmsDatasource( p_datasource:OMSDatasource ):Void {
		this.m_omsDatasource = p_datasource;
	}//set Datasource
		
	public function get OmsDatasource():OMSDatasource {
		return this.m_omsDatasource;
	}//get Datasource
		
	public function get OmsStructure():OMSStructure {
//		trace( '[OMSData.get OmsStructure]' );
		if ( this.m_omsStructure == null ) {
//			trace( '[OMSData.get OmsStructure] this.m_omsStructure is null' );
			this.m_omsStructure = this.m_omsDatasource.OmsStructure;
		}//if
		return this.m_omsStructure;
	}//get OmsStructure

}//odal.OMSData